<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<h3><!-- img alt="" src="" --><a name="welcome">${board.title}</a></h3>
<table class="forum" width="98%">
<col width="50"/><col width="50"/>
<col width="50"/>
<col width="85"/><col width="60"/><col width="*"/>
<tbody>
  <tr>
    <th>序号</th>
    <th>标记</th>
    <th>管理</th>
    <th>作者</th>
    <th>日期</th>
    <th>标题</th>
  </tr>
<c:forEach items="${subjects}" var="item" varStatus="itemStatus">
  <tr class="${(itemStatus.index%2==0) ? 'even' : 'odd'}">
    <td class="right">${item.seqno}</td>
    <td class="center${item.flg==100 ? " red" : ""  }">${item.flg==100 ? "置顶" : "Image"  }</td>
    <td class="center"><input type="checkbox" name="ding" value=""/></td>
    <td class="center"><a href="${pageContext.request.contextPath}/viewforum.tiles">${item.author}</a></td>
    <td><nobr><fmt:formatDate value="${item.updatetimestamp}" pattern="MMM dd HH:mm"/></nobr></td>
    <td><b><a href="${pageContext.request.contextPath}/processor.loadsubject.tiles?id=${item.id}">${item.title}(${item.accesscount})</a></b></td>
  </tr>
</c:forEach>
</tbody>
</table>
<div align="right">
<form name="form1" action="${pageContext.request.contextPath}/forum.tiles" method="get" class="docPager smaller">
<input type="hidden" name="board" value="${board.id}"/>
<input type="hidden" name="manage" value="1"/>
<input type="hidden" name="ftype" value=""/>
[<a href="javascript:location.reload()">删除</a>]
[<a href="${pageContext.request.contextPath}/processor.prepostsubject.tiles?board=${board.id}">发表文章</a>]
[<a href="javascript:location.reload()">刷新</a>]
[<a <c:if test="${page>1}">href="${pageContext.request.contextPath}/processor.listsubject.tiles?board=${board.id}&page=1"</c:if>>第一页</a>]
[<a <c:if test="${page>1}">href="${pageContext.request.contextPath}/processor.listsubject.tiles?board=${board.id}&page=${page-1}"</c:if>>上一页</a>]
[<a <c:if test="${page<pageCount}">href="${pageContext.request.contextPath}/processor.listsubject.tiles?board=${board.id}&page=${page+1}"</c:if>>下一页</a>]
[<a <c:if test="${page<pageCount}">href="${pageContext.request.contextPath}/processor.listsubject.tiles?board=${board.id}&page=${pageCount}"</c:if>>最后一页</a>]
第 ${page} 页/共 ${pageCount} 页&nbsp;&nbsp;
</form>
</div>
